<!DOCTYPE html>
<html>
<head>
  @include("/include/_header.html", {'title':'宠物管理'}){}
  
</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">查询</div>
          <div class="layui-card-body">
          	<div class="layui-form">
	            <div class="test-table-reload-btn" style="margin-bottom: 10px;">
	            	  宠物名：
	              <div class="layui-inline">
	                <input class="layui-input" name="petName" id="petName" autocomplete="off">
	              </div>
	              	宠物编号：
	              <div class="layui-inline">
	                <input class="layui-input" name="petNo" id="petNo" autocomplete="off">
	              </div>
					宠物分类：
					<div class="layui-inline">
						<t:select name="bizKind" dicCode="pet_biz_kind" blank="请选择宠物分类" defaultValue="${pet.bizKind!}"></t:select>
					</div>
					品种分类：
					<div class="layui-inline">
						<t:select name="breed" dicCode="animal_breed" blank="请选择品种分类" defaultValue="${pet.breed!}"></t:select>
					</div>
	               	  健康状态：
					<div class="layui-inline">
						<t:select name="healthStatus" dicCode="animal_health_status" blank="请选择宠物健康状态" defaultValue="${pet.healthStatus!}"></t:select>
					</div>
	            </div>
				<div class="test-table-reload-btn" style="margin-bottom: 10px;">
					所属部门：
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input type="text" name="deptName" id="deptName" placeholder="请选择所属部门" autocomplete="off" class="layui-input" >
							<input type="hidden" name="deptId" id="deptId">
						</div>
						<button class="layui-btn layui-btn-sm"  id="selectDept">请选择</button>
						@include("/component/_select_dept.html", {'domId':'selectDept', 'inputName':'deptName', 'inputId':'deptId'}){}
					</div>
					<div class="layui-row" style="margin-top: 10px;">
						<div class="layui-col-md2 layui-col-md-offset10">
							<button id="btnSearch" class="layui-btn">搜索</button>
							<button id="btnReset" class="layui-btn">重置</button>
						</div>
					</div>

				</div>
             </div>
            <table class="layui-hide" id="biz-pet-table" lay-filter="biz-pet-table"></table>
          	<!-- 头部工具栏 -->
            <script type="text/html" id="biz-pet-toolbar">
              <div class="layui-btn-container">
                <button class="layui-btn layui-btn-sm" lay-event="doAdd" permission="biz/pet/add">新增</button>
              </div>
            </script>
            <!-- 表格操作按钮 -->
            <script type="text/html" id="biz-pet-tool">
				<t:a cssClass="layui-btn layui-btn-primary layui-btn-xs" layEvent="detail" label="查看"></t:a>
				<t:a cssClass="layui-btn layui-btn-xs" layEvent="edit" label="编辑"></t:a>
				<t:a cssClass="layui-btn layui-btn-danger layui-btn-xs" layEvent="del" label="删除" permission="biz:pet:delete"></t:a>
            </script>
             <script type="text/html" id="pet-health-status">
         		{{#  if(d.status == '1'){ }}
            		<button class="layui-btn layui-btn-xs">正常</button>
          		{{#  } else if(d.status == '2') { }}
            		<button class="layui-btn layui-btn-danger layui-btn-xs">生病</button>
				{{#  } else if(d.status == '3') { }}
				<button class="layui-btn layui-btn-danger layui-btn-xs">死亡</button>
				{{#  } else { }}
				<button class="layui-btn layui-btn-xs">其他</button>
				{{#  } }}
        	</script>
          </div>
        </div>
      </div>
    </div>
  </div>
 
  @include("/include/_container.html", {'js':'/assets/biz/pet/pet_list.js'}){}
</body>
</html>